import os
import time
from common.email_tools import send_email
import pytest
if __name__ == '__main__':
    # pytest_options = ["-s", "-v", "--html=./report/report.html", "-m=api"]
    # pytest.main(pytest_options)
    pytest.main()
    #生成allure测试报告,清理旧数据
    os.system("D:\\allure\\allure-2.17.3\\bin\\allure generate ./allure-data -o ./reports --clean")
    time.sleep(2)
    send_email()